package com.ermace.robo.jumper;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class ModeSelectionActivity extends Activity {

	private boolean backPressed = false;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mode_selection);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		//getMenuInflater().inflate(R.menu.mode_selection, menu);
		return true;
	}
	
	@Override
	protected void onResume() {
		super.onResume();
			MainActivity.resumeMusic();
	}
	
	@Override
	protected void onPause() {
		super.onPause();
			if(!backPressed  )
				MainActivity.pauseMusic();
	}
	
	@Override
	public void onBackPressed() {
		backPressed = true;
		super.onBackPressed();
	}
	
	
}
